<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<h1>All Orders</h1>

<table class="search">
    <tr>
        <th>Order Number</th>
        <th>Order Date</th>
        <th>Order Created</th>
        <th>Provision Date</th>
        <th>Install Date</th>
        <th>Installation Completed Date</th>
        <th>Agent ID</th>
        <th>Customer Name</th>
        <th>Customer Address</th>
        <th>Customer Phone</th>
    </tr>
<c:forEach var="order" items="${orders}" varStatus="status">
    <tr>
        <c:set var="orderFormId" value="order${status.index}"/>

    	<td>${order.ordernum}</td>
        <td>${order.orderdate}</td>
        <td>${order.ordercreatedate}</td>
        <td>${order.provisiondate}</td>
        <td>${order.installdate}</td>
        <td>${order.installcompleted}</td>
        <td>${order.agentid}</td>
        <td>${order.customername}</td>
        <td>${order.customeraddress}</td>
        <td>${order.customerphone}</td>
    </tr>
</c:forEach>
</table>